/**
 * 
 */
package com.mobipe.sutto.serverlogic;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author kohachiro
 *
 */
public class User extends UserProxy {	
	final Map<String, String> extProperties;	
	int teamId;
	/**
	 * 
	 */
	public User(int id,String name,Object channel) {
		super(id,name,channel);
		extProperties = new ConcurrentHashMap<String, String>();
		this.teamId=id;
	}
	public int getId(){
        return id;
    }
	public int getTeamId() {
		return teamId;
	}
	public void setTeamId(int teamId) {
		this.teamId = teamId;
	}
	public String getName() {
		return name;
	}
	public Object getChannel() {
		return channel;
	}
	public Room getRoom() {
		return room;
	}
	public Map<String, String> getProperties() {
		return extProperties;
	}
	public void addExtProperty(String key,String value) {
		extProperties.put(key, value);
	}
	public String getExtProperty(String key) {
		return extProperties.get(key);
	}	
	public void removeExtProperty(String key) {
		extProperties.remove(key);
	}
	public void addProperty(String key,String value) {
		properties.put(key, value);
	}
	public String getProperty(String key) {
		return properties.get(key);
	}	
	public void removeProperty(String key) {
		properties.remove(key);
	}	
}
